<?php if($_GET['type']==2){ ?>
    <?php foreach($output['pd_list'] as $key=> $value){  ?>
        <li>
            <a href="index.php?act=merchant&op=pd_cash_info&pdc_id=<?php echo $value['pdc_id']; ?>">
                <h5>提现<b class="color_red fr">￥<?php echo $value['pdc_amount'] ?></b></h5>
                <?php if($value['pdc_status']==0) {?>
                    <p class=" color_red">审核中<b class="fr"><?php echo date('Y-m-d',$value['pdc_add_time']) ?></b></p>
                <?php  }elseif($value['pdc_status']==1){?>
                    <p class="color_green">已到账<b class="fr"><?php echo date('Y-m-d',$value['pdc_add_time']) ?></b></p>
                <?php }else{ ?>
                    <p class=" color_red">已拒绝<b class="fr"><?php echo date('Y-m-d',$value['pdc_add_time']) ?></b></p>
                <?php } ?>
                <i class=" rotate iconfont icon-xialalan-copy"></i>
            </a>
        </li>
    <?php } ?>
<?php }else{ ?>
    <?php foreach($output['pd_list'] as $key=> $value){  ?>
        <li>
            <?php if($value['if_cash']==0):?>
            <a href="index.php?act=merchant&op=orderdetail&ordersn=<?php echo $value['order_sn']; ?>">
                <?php endif; ?>
                <h5><?php echo $value['lg_desc'] ?>，您获得<b class="color_red">￥<?php echo $value['lg_av_amount']; ?></b></h5>
                <p>订单号：<span><?php echo $value['order_sn'] ?></span><b class="fr"><?php echo date('Y-m-d',$value['lg_add_time']) ?></b></p>
                <i class=" rotate iconfont icon-xialalan-copy"></i>
            </a>
        </li>
    <?php } ?>
<?php } ?>
